<template>
  <div class="box1">
    <el-page-header @back="goBack" content="企业认证"> </el-page-header>

    <div class="form1">
      <div style="margin: 15px"></div>
      <el-form
        :label-position="labelPosition"
        label-width="130px"
        :model="formLabelAlign"
      >
        <el-form-item label="企业名称：">
          <el-input v-model="formLabelAlign.name"></el-input>
        </el-form-item>
        <el-form-item label="联系邮箱：">
          <el-input v-model="formLabelAlign.region"></el-input>
        </el-form-item>
        <el-form-item label="联系电话：">
          <el-input v-model="formLabelAlign.type"></el-input>
        </el-form-item>
        <el-form-item label="营业执照：">
          <!-- <el-input v-model="formLabelAlign.type"></el-input> -->
          <el-upload
            action="https://jsonplaceholder.typicode.com/posts/"
            list-type="picture-card"
            :on-preview="handlePictureCardPreview"
            :on-remove="handleRemove"
          >
            <i class="el-icon-plus"></i>
          </el-upload>
          <el-dialog :visible.sync="dialogVisible">
            <img width="100%" :src="dialogImageUrl" alt="" />
          </el-dialog>
        </el-form-item>
        <div>
          <el-form-item class="btn2">
            
            <el-button type="primary" @click="gozx"
              >确认认证</el-button
            >
            <el-button>取消</el-button>
          </el-form-item>
        </div>
      </el-form>
      
    </div>
     
  </div>
</template>

<style>
.box1 {
  width: 1250px;
  height: 660px;
  background-color: white;
  /* padding-top: 50px; */
}
.btn2{
   margin-top: 20px;
   /* margin-left:900px; */
}
.form1 {
  width: 500px;
  height: 500px;
  /* border: red 1px solid; */
  margin-top: 50px;
}
</style>

<script>
export default {
  data() {
    return {
      dialogImageUrl: "",
      dialogVisible: false,
      labelPosition: "right",
      formLabelAlign: {
        name: "",
        region: "",
        type: "",
      },
    };
  },
  methods: {
    goBack() {
      this.$router.push("/Beforeqyzx");
    },
    gozx() {
      this.$router.push("/qyzx");
    },
    handleRemove(file, fileList) {
      console.log(file, fileList);
    },
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;
      this.dialogVisible = true;
    },
  },
};
</script>


